package com.aizhixin.test.question.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.aizhixin.test.question.dao.answerRecordDAO;
import com.aizhixin.test.question.dto.answerRecordDTO;
import com.aizhixin.test.question.dto.bestKonlege;
import com.aizhixin.test.question.vo.MostKonwledgeVO;

@Service
@Transactional
public class anserRecordService {
/*
 * 查某个用户的擅长领域（前三个）
 */
	@Autowired
	private answerRecordDAO answerRecordDAO;
	public List<bestKonlege> getMaxKonledgeByUserId(Long userId){
		return answerRecordDAO.getUserMaxKnowledge(userId);
	}
	public List<MostKonwledgeVO> getfiveKonwledge(Long userid) {
	
		return answerRecordDAO.getUsefiveKnowledge(userid);
	}
}
